/**
 *Filename: article_list.scss
 *Author: xhh
 *Description: 文章列表页，还没有编译的文件，用的是sass语法写
 *Date: 2018.03.26
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";

/* 文章主体部分 start */
.site-article-wrapper {
    .article-header {
        max-height: 640px;
        img {
            height: 100%;
            width: 100%;
        }
    }
    .site-article-list {
        margin-bottom: 6%;
    }
    // ul
    .article-list {
        max-width: 90%;
        margin: 0 auto;
    }
    // li
    .article-item {
        margin-top: 6%;
    }
    // 文章图片
    .article-img {
        margin: 0 auto;
        img {
            max-width: 100%;
        }
    }
    // 多图 
    .article-img-more {
        overflow: hidden;
        position: relative;
    }
    // 多图列表
    .article-img-list {
        position: relative;
        left: 0;
        display: flex;
        width: 400%;
        li {
            width: 100%;
            img {
                max-width: 100%;
            }
        }
    }
    .article-img-num { 
        display: flex;
        align-items: center;
        z-index: 2;
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translate(-50%,0);
        li {
            width: 1rem;
            height: 2px;
            background-color: Gray;
            margin: .3rem;
            cursor: pointer;
            &:hover {
                height: 4px;
                background-color: #fff;
            }
            &.active {
                height: 4px;
                background-color: #fff;
            }
        }
    }
    // 文章音频
    .article-video {
        width: 100%;
        video {
            max-height: 460px;
            width: 100%;
            background-color: #000;
        }
    }
    // 隐藏的视频
    .article-video {
        position: relative;
        img {
            max-width: 100%;
        }
        // 播放按钮
        .icon-play {
            position: absolute;
            left: 50%;
            top: 50%;
            height: 28px;
            width: 28px;
            background: url(../img/article/list/icon_play.png) no-repeat center;
            background-size: cover;
            transform: translate(-50%,-50%);
            cursor: pointer;
        }
    }
    // 文章时间
    .article-time {
        margin-top: 1.6rem;
        font-size: .875rem;
        color: #666;
        text-transform: uppercase;
        em {
            font-style: normal;
            color: #e3c188;
        }
    }
    // 文章标题
    .article-title {
        margin-top: .5rem;
        font-size: 1.8rem;
    }
    // 文章内容
    .article-content {
        margin-top: .5rem;
        font-size: .875rem;
        line-height: 1.8;
        color: #666;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    // read more按钮
    .read-more-btn {
        position: relative;
        display: inline-block;
        padding: 1rem 1.2rem;
        border: 1px solid #a5afa5;
        margin-top: 2rem;
        text-transform: uppercase;
        font-size: .875rem;
        font-weight: bold;
        color: #000;
        &::before {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 100%;
            height: 100%;
            border: 1px solid #a5afa5;
        }
        &:hover {
            text-decoration: underline;
            &::before {
                top: 0;
                left: 0;
                transition: all .2s linear;
            }
        }
    }
    // 底部的页码
    .site-article-pages {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 3rem;
        span {
            display: inline-block;
            width: 2.4rem;
            height: 2.4rem;
            border: 1px solid #a5a5a5;
            margin: 0 .5rem;
            line-height: 2.4rem;
            text-align: center;
            cursor: pointer;
            background-repeat: no-repeat;
            background-position: center;
        }
        // 上一页按钮背景图
        .pre-page {
            background-image: url(../img/article/list/icon_left.png);
        }
        // 下一页按钮背景图
        .next-page {
            background-image: url(../img/article/list/icon_right.png);
        }
        // 数字页码
        a {
            display: inline-block;
            width: 2.4rem;
            height: 2.4rem;
            border: 1px solid #a5a5a5;
            margin: 0 .5rem;
            line-height: 2.4rem;
            text-align: center;
            color: #a5a5a5;
            &.active {
                border: 1px solid #d7bc8f;
                color: #d7bc8f;
            }
            &:hover {
                border: 1px solid #d7bc8f;
                color: #d7bc8f;
            }
        }
    }
}
/* 文章主体部分 end */

/* 遮罩层 start */
.mask {
    display: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba($color: #000000, $alpha: .85);
}
/* 遮罩层 end */

/* 视频播放盒子 start */
.play-video-box {
    display: none;
    z-index: 1001;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    video {
        width: 100%;
        height: 100%;
    }
}
/* 视频播放盒子 end */
